import Vue from 'vue'
import App from './App'
import './uni.scss'

import mixins from '@/mixins'
import toastr from '@/assets/utils/toastr'
import storage from '@/assets/utils/Storage'
import routes from './routes.json'
import { init , router } from './miniapp-base-common'
import initObj from '@/utils/init'
import uView from 'uview-ui'

init( initObj )
Vue.use(storage)
Vue.use(toastr)
Vue.use(uView)
uni.$u.config.unit = 'rpx'

Vue.use(router, {
    agreement: 'hyay',
    routes
})
Vue.mixin(mixins)
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
initObj.$this = app;
app.$mount()
